﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using  System.Data;
using RoadTeam.Model;
using RoadTeam.Enums;
using RoadTeam.SysInterface;

namespace RoadTeam.BsSystem.CS.HomeInspection
{
    public class TbCsDoorRoomRela_Sys : ICsDoorRoomRela
    {

        public DataTable GetDoorRoomRelaData()
        {
            SqlWhere where = new SqlWhere();
            where.Info = new TbCsDoorRoomRela() { };
            where.StrSqlWhere = @" App_Identifier Is  NULL  ";
            where.SelectColumn = @" DoorTypeID,RoomTypeID,App_Identifier,RelaID ";
            return TbCsDoorRoomRela.Select(where, GlobalConfig.RtConnectionString);
        }


        public bool UpdateDoorRoomRelaData(DataTable dt)
        {
            return TbCsDoorRoomRela.Update(dt, GlobalConfig.RtConnectionString);
        }
     


    }
}
